//
//  ChatRoom.h
//  MooreDoll
//
//  Created by Joe on 2014/12/30.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class ChatMessage, Roster;

@interface ChatRoom : NSManagedObject

@property (nonatomic, retain) NSString * displayName;
@property (nonatomic, retain) NSString * lastMessage;
@property (nonatomic, retain) NSDate * lastUpdate;
@property (nonatomic, retain) NSString * owner;
@property (nonatomic, retain) NSSet *chatPlace;
@property (nonatomic, retain) Roster *ownersRoom;
@end

@interface ChatRoom (CoreDataGeneratedAccessors)

- (void)addChatPlaceObject:(ChatMessage *)value;
- (void)removeChatPlaceObject:(ChatMessage *)value;
- (void)addChatPlace:(NSSet *)values;
- (void)removeChatPlace:(NSSet *)values;

@end
